﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HCQ2_Model.Data;

namespace HCQ2_Model.ClassRoom
{
    /// <summary>
    /// 获取直播课堂列表请求参数
    /// </summary>
    public class ClassRoomQueryDto:Page
    {
        /// <summary>
        /// 【必填】用户ID
        /// </summary>
        [Required(ErrorMessage ="用户ID必填")]
        public string userid { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        /// <remarks>
        /// 20200708，由int?类型改为string类型,老谭提出
        /// </remarks>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 目录ID
        /// </summary>
        public int? FolderId { get; set; }

        /// <summary>
        /// 关键字
        /// </summary>
        /// <remarks>
        /// 获取到关键字能模糊匹配课堂名称或课堂备注的记录
        /// </remarks>
        public string KeyWork { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        /// <remarks>
        /// 搜索条件：“上课时间”中的日期≥开始日期
        /// </remarks>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        /// <remarks>
        /// 搜索条件：“上课时间”中的日期≤结束日期
        /// </remarks>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 课堂是否结束
        /// </summary>
        public bool? IfFinish { get; set; }        
    }
}
